﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="HealthWorkStat.aspx.cs" Inherits="App_Search_HealthWorkStat" Title="会员家访记录" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <cc1:comvalidator id="ComValidator1" runat="server" checkitems-capacity="4" forecolor="Red"><cc1:CheckDateRangeAttribute Code="E0378" DataFormat="yyyy/MM/dd" ControlToValidator1="txtStart" ControlToValidator2="txtEnd"><cc1:ComAbsParamsAttribute Parameter="开始日"></cc1:ComAbsParamsAttribute>
<cc1:ComAbsParamsAttribute Parameter="结束日"></cc1:ComAbsParamsAttribute>
</cc1:CheckDateRangeAttribute>
        <cc1:CheckDateAttribute Code="E0034" ControlToValidator="txtStart" DataFormat="yyyy/MM/dd">
            <cc1:ComAbsParamsAttribute Parameter="时间范围开始时间" />
        </cc1:CheckDateAttribute>
        <cc1:CheckDateAttribute Code="E0034" ControlToValidator="txtEnd" DataFormat="yyyy/MM/dd">
            <cc1:ComAbsParamsAttribute Parameter="时间范围结束时间" />
        </cc1:CheckDateAttribute>
</cc1:comvalidator>
<table width="100%">
      <tr>
        <td>
            <table class="table_border_line">
                <tr>
			    <td align="left" colspan="4" >
			        <script language="javascript">
                                        (new TitleBar('SearchBar', '检索条件')).showBar();
                            </script>
			    </td>						
		      </tr>
            </table>
		    <table class="table_border_line">
		      <tr>
			    <td style="width:16px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" align="left">
                    保健医生编号</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:TextBox ID="txtId" runat="server" MaxLength="4"></asp:TextBox></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>					
		      <tr>
			    <td style="width:16px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" align="left">
                    时间范围</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:TextBox ID="txtStart" runat="server" onfocus="new Calendar().show(this);" MaxLength="10"></asp:TextBox>～<asp:TextBox
                        ID="txtEnd" runat="server" MaxLength="10" onfocus="new Calendar().show(this);"></asp:TextBox>（格式：yyyy/MM/dd）</td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>	
           </table></td>
      </tr>
      <tr>
        <td align="center">
            <br />
          <table>
             <tr>
                <td style="width:80px; height: 24px;">
                    <asp:Button ID="btnSeach" runat="server" CssClass="button" Text="检 索" Width="100%" OnClick="btnSeach_Click"/></td>						
             </tr>
          </table>    </td>
      </tr>
    </table>
    <div>
        <table id="tblResult" width="100%" runat="server">
            <tr>
                <td>
		            <table class="table_border_line">
		            <tr>
			            <td align="left" colspan="2" >
			                <script language="javascript">
                                        (new TitleBar('SearchBar1', '健康管家列表')).showBar();
                            </script>
			            </td>						
		            </tr>	
		            <tr>
		                <td>
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        CssClass="GridView_table" Width="100%">
        <Columns>
            <asp:BoundField HeaderText="保健医生编号" DataField="EmployeeId">
                <ItemStyle CssClass="GridView_item_center" />
                <HeaderStyle CssClass="GridView_head_grayblue" Width="20%" />
            </asp:BoundField>
            <asp:BoundField HeaderText="保健医生姓名" DataField="EmployeeName">
                <ItemStyle CssClass="GridView_item_center" />
                <HeaderStyle CssClass="GridView_head_grayblue" Width="20%" />
            </asp:BoundField>
            <asp:BoundField HeaderText="家访次数" DataField="Cnt1">
                <ItemStyle CssClass="GridView_item_center" />
                <HeaderStyle CssClass="GridView_head_grayblue" Width="30%" />
            </asp:BoundField>
            <asp:BoundField HeaderText="出诊次数" DataField="Cnt2">
                <ItemStyle CssClass="GridView_item_center" />
                <HeaderStyle CssClass="GridView_head_grayblue" Width="30%" />
            </asp:BoundField>
        </Columns>
        <PagerStyle HorizontalAlign="Right" />
    </asp:GridView>
</td>
		            </tr>	
		            <tr>
		            <td>
		            <table width=100% class="GridView_table" style="height: 46px">
		            <tr>
		            <td>
		            		            <table width=100%>
		                <tr>
		                    <td rowspan="2" style="width:40%" align="center" class="GridView_head_grayblue">
                                <b>总计：</b></td>
		                    <td style="width:30%" align="center" class="GridView_head_grayblue">
                                <b>家访次数</b></td>
		                    <td style="width：30%" align="center" class="GridView_head_grayblue">
                                <b>出诊次数</b></td>
		                </tr>
		                <tr>
		                    <td align="center" class="GridView_item_center">
                                <asp:Label ID="lbl1" runat="server" Width="100%"></asp:Label></td>
		                    <td align="center" class="GridView_item_center">
                                <asp:Label ID="lbl2" runat="server" Width="100%"></asp:Label></td>
		                </tr>
		            </table>
		            </td>
		            </tr>
		            </table>

		            </td>
		            </tr>
		            </table>
                 </td>
            </tr>
        </table>
    </div>
</asp:Content>

